<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>三栏布局-flex</title>
		<style type="text/css">
			* {
				margin: 0;
				padding: 0;
			}
			body {
				min-width: 1000px;
			}
			.header {
				display: flex;
				align-items: center;
				justify-content: center;
				height: 100px;
				background-color: lightcyan;
			}
			.content {
				display: flex;
				height: 400px;
				background-color: lightpink;
			}
			.content .middle {
				flex: 1;
				height: 100%;
			}
			.content .left {
				width: 200px;
				height: 100%;
				background-color: lightgoldenrodyellow;
			}			
			.content .right {
				float: left;
				width: 300px;
				height: 100%;
				background-color: lightsalmon;
			}
			.footer {
				height: 100px;
				text-align: center;
				background-color: lightgreen;
			}
		</style>
	</head>
	<body>
		<div class="header"><h1>圣杯布局</h1></div>
		<div class="content">
			<div class="left">left</div>
			<div class="middle"><h2>中间</h2></div>
			<div class="right">right</div>
		</div>
		<div class="footer">底部</div>
	</body>
</html>
